<template>
  <login-form v-model="data.loginForm" @handleLogin="handleLogin"/>
</template>

<script setup lang="ts">
import LoginForm from '@/components/LoginForm.vue'
import { reactive } from 'vue'
import { ILoginForm } from '@/types'

const data = reactive({
  loginForm: {
    username: '',
    password: '',
    isRemember: false
  } as ILoginForm
})

const handleLogin = () => {
  console.log(data.loginForm)
}
</script>
